/*
 * @Author: xiaosihan 
 * @Date: 2023-07-31 02:56:39 
 * @Last Modified by: xiehangyunn
 * @Last Modified time: 2025-03-21 06:12:49
 */

import { DoubleSide, EquirectangularReflectionMapping, MeshStandardMaterial } from "three";
import threeLoader from "three-base/threeLoader";
import evnJPG from "./spruit_sunrise_4k.hdr.jpg";

// 设置全局环境贴图
const envMap = threeLoader.getTexture(evnJPG);
envMap.mapping = EquirectangularReflectionMapping;

// 金属材质
const metalMaterial = new MeshStandardMaterial({
    // color: "#ffffff",
    color: "#ffd700",
    metalness: 0.67, // 金属度，1.0是完全的金属效果  
    roughness: 0.18, // 粗糙度，0.0是完全光滑，1.0是非常粗糙  
    side: DoubleSide,
    envMap: envMap
});

export default metalMaterial;